OSError: [Errno 98] Address already in use

22

kill -9 $(ps -A | grep python | awk '{print $1}')
#We can set the following to overcome the "Address already in use" that we hit often while building our programs:
#This modifies the socket to allow us to reuse the address.
>>>server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

Comments

Submit
0 Comments